import { createRouter,createWebHistory,createWebHashHistory } from 'vue-router'
import view1 from '../components/view1.vue'
import view2 from '../components/view2.vue'

const routes = [
    {
        path: '/',
        component:view1
    },
    {
        path: '/view1',
        component:view1
    },
    {
        path: '/view2',
        component:view2
    }
]

const router = createRouter({
    history: createWebHistory(),
    // history:createWebHashHistory(),
    routes,
})

export default router;

